<template>
  <div class="animation-box"></div>

</template>

<script>
  export default {
    name: 'search',
    props:['model']
  }
</script>

<style scoped>
.animation-box{
  margin: auto;
  width: 100px;
  height:100px;
  animation: example 2s infinite;
  animation-delay:2s;
  animation-timing-function:ease-in;
  animation-fill-mode: both;
}

.animation-box:hover{
  background-color: red;
  animation-play-state:paused;
}

/* 动画代码 */
@keyframes example {
  0% {background-color: white;
      border: 50px transparent; }
  10%{background-color: white;
      border: none;
      border-left:50px solid red;}
  50% {background-color: lightskyblue; }
  100% {background-color: yellow; }
}


</style>